package com.jyxd.web.service.dictionary;

import com.jyxd.web.dao.dictionary.MonitorManufacturersDictionaryDao;
import com.jyxd.web.data.dictionary.MonitorManufacturersDictionary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class MonitorManufacturersDictionaryService {

    @Autowired
    private MonitorManufacturersDictionaryDao monitorManufacturersDictionaryDao;

    public boolean insert(MonitorManufacturersDictionary monitormanufacturersdictionary){
        return monitorManufacturersDictionaryDao.insert(monitormanufacturersdictionary);
    }
    /**
     * 查询监护仪
     * @param
     * @return
     */
    public List<MonitorManufacturersDictionary> getList(Map<String, Object> map){
        return monitorManufacturersDictionaryDao.getList(map);
    }

    /**
     * 修改监护仪字典
     * @param map
     * @return
     */
    public boolean updateByid(Map<String, Object> map){
        return monitorManufacturersDictionaryDao.updateByid(map);
    }

    /**
     * 删除
     * @param map
     * @return
     */
    public boolean deleteByid(Map<String, Object> map){
        return monitorManufacturersDictionaryDao.deleteByid(map);
    }



    public int getNum(Map<String,Object> map){return monitorManufacturersDictionaryDao.getNum();}
}
